/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.CaveStubGenerator;

import java.io.File;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;

/**
 *
 * @author JHS-Home
 */
public class StubSocket {

    private final String SERVER_IP = "127.0.0.1";
    private final int PORT = 4001;
    private Socket socket;
    private PrintWriter socketWriter;

    public StubSocket() throws IOException {

        socket = new Socket(SERVER_IP, PORT);

        socketWriter = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));

    }

    public void sendResultMsg(String msg) {
        socketWriter.print(msg);
    }
}
